package com.nativetalk.service.teacher.login;

import com.nativetalk.base.RetInfo;
import com.nativetalk.bean.teacher.TdNtTeacherLogin;
import com.nativetalk.bean.teacher.TdNtTeacherResult;

/**
 * Created by lizhun on 16/1/8.
 */
public interface TeacherLoginService {
    /**
     * @param tdNtTeacherLogin
     * @return RetInfo
     * @Purpose 登陆
     * @version 1.0
     * @author lizhun
     */
    public RetInfo login(TdNtTeacherLogin tdNtTeacherLogin, int version);

    /**
     * @param tdNtTeacherLogin
     * @return RetInfo
     * @Purpose 登陆
     * @version 2.1
     * @author lizhun
     */
    public RetInfo loginTWO(TdNtTeacherLogin tdNtTeacherLogin, int version, String ip);

    /**
     * @param tdNtTeacherLogin
     * @return RetInfo
     * @Purpose 登陆
     * @version 1.3
     * @author lizhun
     */
    public RetInfo loginNew(TdNtTeacherLogin tdNtTeacherLogin);

    /**
     * @param tdNtTeacherResult
     * @return RetInfo
     * @Purpose 登出
     * @version 1.0
     * @author lizhun
     */
    public RetInfo out(TdNtTeacherResult tdNtTeacherResult);

    /**
     * 更新deviceId
     *
     * @param tea_id
     * @param equ_client_id
     * @return
     */
    public RetInfo updateEquClientId(int tea_id, String equ_client_id, String equ_type);

    String receiveRongCloudTokenForTeacher(Integer tea_id);
}
